package L617;

import java.util.Arrays;
import java.util.Scanner;

/**
 * @program: javase
 * @description:
 * @author: luolidong
 * @create: 2021-06-17 20:32
 * @version: 1.0
 */
public class Main1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextLine()){
            String s = scanner.nextLine();
            String[] s1 = s.split(" ");
            int[] array = Arrays.stream(s1).mapToInt(Integer::valueOf).toArray();
            int x=array[7];
            int y=array[8];
            int len=array[0];
            int count=0;
            for (int i = 1; i <=6; i+=2) {
                if(Math.pow(Math.abs(array[i]-x), 2)+Math.pow(Math.abs(array[i+1]-y), 2)<=len*len){
                    count++;
                }
            }
            System.out.println(count+"x");
        }
        scanner.close();
    }
}
